import React from "react";

/**
 * 加载图片或样式文件
 * */
import './sass/Avatar.scss';



export default class Avatar extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            // sidebarVisible: false
        }
    }

    render() {
        const { src,isVip } = this.props;
        return (
            <div className="avatar-box">
                <img src={ src }  alt=""/>

                {
                    isVip ? <i className="icon-vip"/> : null
                }
            </div>
        )
    }
}